#include <iostream>
using namespace std;
void swap(int *p,int *q){
	int z;
	z=*p;
	*p=*q;
	*q=z;
		
}
void swap1(int &x,int &y){
	int i;
	i=x;
	x=y;
	y=i;
		cout<<x <<" "<<y <<endl;
}
int main (){
	int a,b;
	cin>>a>>b;
	swap(&a,&b);
	// swap1(a,b);
	cout<<a <<" "<<b <<endl;
	return 0;
	
} 
